package com.model.domain.enaho.cuestionario;

import com.model.dao.mapping.Enaho01A;
import com.model.dao.mapping.Enaho02;
import com.model.dao.mapping.Enaho04;
import com.model.dao.mapping.Enaho01;
import com.model.dao.mapping.Enaho01B;

/**
 *
 * @author Rdelacruz
 */
public enum CuestionarioEnaho {
    ENAHO_01,
    ENAHO_01A,
    ENAHO_01B,
    ENAHO_02,
    ENAHO_04;
    
  
    public SeccionEnum getEnumSeccionDe(String literal) {
        switch(this) {
            case ENAHO_01:
                return Enaho01.valueOf(literal);
            case ENAHO_01A:
                return Enaho01A.valueOf(literal);
            case ENAHO_01B:
                return Enaho01B.valueOf(literal);
            case ENAHO_02:
                return Enaho02.valueOf(literal);
            case ENAHO_04:
                return Enaho04.valueOf(literal);
        }        
        return null;
    }  
       
    public Enum[] getEnumsSeccion() {
        switch(this) {
            case ENAHO_01:
                return Enaho01.values();
            case ENAHO_01A:
                return Enaho01A.values();
            case ENAHO_01B:
                return Enaho01B.values();
            case ENAHO_02:
                return Enaho02.values();
            case ENAHO_04:
                return Enaho04.values();
        }        
        return null;
    }
    
    
}
